package com.maochang.reggie.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.maochang.reggie.pojo.Dish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DishMapper extends BaseMapper<Dish> {

    @Select("select * from dish where category_id = #{categoryId}")
    List<Dish> findByCategoryId(Long categoryId);

}
